Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

[QUAD] Deadline: Improve get_publish_plugin_paths to properly get paths for the specified host #6313

Conversation

BenSouchet
Copy link

Changelog Description

Paragraphs contain detailed information on the changes made to the product or service, providing an in-depth description of the updates and enhancements. They can be used to explain the reasoning behind the changes, or to highlight the importance of the new features. Paragraphs can often include links to further information or support documentation.

Additional info

Paragraphs of text giving context of additional technical information or code examples.

Testing notes:

  1. start with this step
  2. follow this step

all_plugin_paths = {}

for valid_plugin_type in self._valid_plugin_types:
all_plugin_paths[valid_plugin_type] = self.plugin_paths[valid_plugin_type]['all']
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (93 > 79 characters)

if host in self.plugin_paths[valid_plugin_type]:
self.plugin_paths[valid_plugin_type][host].append(plugin_path_resolved)
else:
self.plugin_paths[valid_plugin_type][host] = [plugin_path_resolved]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (95 > 79 characters)

# Adding the plugin path to the correct host array(s)
for host in hosts_list:
if host in self.plugin_paths[valid_plugin_type]:
self.plugin_paths[valid_plugin_type][host].append(plugin_path_resolved)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (99 > 79 characters)

hosts_list = ast.literal_eval(hosts_str)

# Adding the plugin path to the "all" array
self.plugin_paths[valid_plugin_type]['all'].append(plugin_path_resolved)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (92 > 79 characters)

# The regex didn't match, maybe an __init__.py file
continue

hosts_str = re.sub(r'\s+', '', match.group(match.lastgroup))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (80 > 79 characters)

@ynbot ynbot added type: enhancement Enhancements to existing functionality module: Deadline AWS Deadline related features size/XS Denotes a PR changes 0-99 lines, ignoring general files labels Sep 11, 2024
@BigRoy
Copy link
Collaborator

BigRoy commented Sep 11, 2024

I suppose this is to register only the plug-ins for a particular host. This has been solved in ayon-deadline with the plug-ins in respective subfolders, here: https://github.com/ynput/ayon-deadline/tree/develop/client/ayon_deadline/plugins/publish

@BigRoy BigRoy closed this Sep 11, 2024
@ynbot ynbot added this to the next-patch milestone Sep 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
module: Deadline AWS Deadline related features size/XS Denotes a PR changes 0-99 lines, ignoring general files type: enhancement Enhancements to existing functionality
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants